


public class Test {


    public static void main2(String[] args) {
        myLinkedList list = new myLinkedList();
        list.addFirst(25);
        list.addFirst(28);
        list.addFirst(99);
        list.addFirst(25);
        list.addLast(99);
        list.addLast(25);
        list.display();


    }


    public static void main(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
        list.addFirst(1);
        list.addFirst(55);
        list.addFirst(3);
        list.addFirst(1);
        list.addFirst(55);
        list.addFirst(3);
        list.display();
        System.out.println();
        list.printList(list.head);
        System.out.println();
        list.printList();


    }
    
}
